package com.bean;

import com.utils.DateUtils;

import java.util.Date;

/**
 * @author Administrator
 */
public class HwAttach {
    private Integer id;

    private Integer hwId;

    private String title;

    private String type;

    private String url;

    private String createTime;

    private String createMan;

    public HwAttach() {
    }

    public HwAttach(Integer hwId, String title, String type, String url, Date createTime, String createMan) {
        this.hwId = hwId;
        this.title = title;
        this.type = type;
        this.url = url;
        this.createTime = DateUtils.format(createTime);
        this.createMan = createMan;
    }

    @Override
    public String toString() {
        return "HwAttach{" +
                "id=" + id +
                ", hwId=" + hwId +
                ", title='" + title + '\'' +
                ", type='" + type + '\'' +
                ", url='" + url + '\'' +
                ", createTime=" + createTime +
                ", createMan=" + createMan +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getHwId() {
        return hwId;
    }

    public void setHwId(Integer hwId) {
        this.hwId = hwId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Date getCreateTime() {
        return DateUtils.parse(createTime);
    }

    public void setCreateTime(Date createTime) {
        this.createTime = DateUtils.format(createTime);
    }

    public String getCreateMan() {
        return createMan;
    }

    public void setCreateMan(String createMan) {
        this.createMan = createMan;
    }
}